home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20000824-20010305
/
000217_news@columbia.edu _Tue Jan 23 09:43:33 2001.msg
< prev
next >
Wrap
Internet Message Format
|
2001-03-05
|
2KB
Return-Path: <news@columbia.edu>
Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
by monire.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id JAA12688
for <kermit.misc@cpunix.cc.columbia.edu>; Tue, 23 Jan 2001 09:43:33 -0500 (EST)
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id JAA00690
for <kermit.misc@watsun.cc.columbia.edu>; Tue, 23 Jan 2001 09:43:33 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id JAA04555
for kermit.misc@watsun.cc.columbia.edu; Tue, 23 Jan 2001 09:25:16 -0500 (EST)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: fdc@columbia.edu (Frank da Cruz)
Subject: Re: checking for modem
Date: 23 Jan 2001 14:25:13 GMT
Organization: Columbia University
Message-ID: <94k489$4e8$1@newsmaster.cc.columbia.edu>
To: kermit.misc@columbia.edu
In article <94jjgm$dnp$1@nnrp1.deja.com>, <grisam@my-deja.com> wrote:
: I am using a GSM modem to send out SMS (stands for Short Messaging
: Service) alerts when an earthquake happens. The program is written in
: Perl but the communication with the modem is done with a Kermit macro,
: basically it is just a modified testmodem script that comes together
: with the Kermit distribution. To send SMS I use AT commands.
:
: Sometimes the GSM modem misbehaves but the only indication of this
: happening is the non-delivery of SMS.
:
: How do I check for presence of the modem when I do the
:
: set line \m(device)
:
Most script commands can succeed or fail, and you can check them with
IF SUCCESS or IF FAILURE. For example:
set line \m(device)
if fail stop 1 \m(device) not available
AT commands to the modem should respond with "OK", so:
output ATxxxxx\13
input 3 OK
if fail stop 1 No response from modem
- Frank